package vn.edu.saigontech.ncms.web.system;

import vn.edu.saigontech.ncms.util.Checker;
import vn.edu.saigontech.ncms.web.AbstractValidator;

@SuppressWarnings("serial")
public class ValidateScholarshipAction extends AbstractValidator {
	private String name;
	
	@Override
	public String check() {
		if(Checker.isEmpty(this.name)) 
			this.sendKeyError("validator.required", "name");
		return this.toSuccess();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}